import src.Jkan1;

import java.util.ArrayList;
import java.util.Scanner;

public class Jkan {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生学号：");
        String sid = sc.nextLine();
        System.out.println("请输入学生姓名：");
        String name = sc.nextLine();
        System.out.println("请输入学生年龄：");
        String age = sc.nextLine();
        Jkan1 phone =new Jkan1();
        phone.name=name;
        phone.age= age;
        phone.sid=sid;
        System.out.println("姓名 "+phone.name);
        System.out.println("年龄 "+phone.age);
        System.out.println("学号 "+phone.sid);
        ArrayList<String> list = new ArrayList<String>();
        list.add(phone.name);
        list.add(phone.age);
        list.add(phone.sid);
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }
    }
}
